package de.doegel.common;

import greendroid.app.GDActivity;

import java.net.MalformedURLException;

import android.os.Bundle;
import android.webkit.WebView;
import de.doegel.common.util.Utils;

public class WebviewActivity extends GDActivity {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		setActionBarContentView(R.layout.webview);
		
		WebView webview = (WebView) findViewById(R.id.webview);
		webview.getSettings().setBuiltInZoomControls(true);
		try {
			webview.loadUrl(Utils.getTemporaryImageFile(this).toURL().toString());
		} catch (MalformedURLException e) {
			e.printStackTrace();
		}
	}

}